Skip to main content
EventEmitter.prototype.[EventEmitter.captureRejectionSymbol] - events - Node documentation
method EventEmitter.prototype.[EventEmitter.captureRejectionSymbol]

Usage in Deno

import { EventEmitter } from "node:events";
EventEmitter.prototype.[EventEmitter.captureRejectionSymbol]<K>(
error: Error,
event: Key<K, T>,
...args: Args<K, T>,
): void

Type Parameters

K

Parameters

error: Error
event: Key<K, T>
...args: Args<K, T>

Return Type

void